package com.jx.springcloud.controller;

import com.jx.springcloud.service.PaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class PaymentControl {
    @Resource
    private PaymentService paymentService;

    @GetMapping(value = "/paymentOK")
    public String paymentOK(){
        return paymentService.paymentOK();
    }

    @GetMapping(value = "/paymentlayer")
    public String paymentlayer() throws InterruptedException {
       return paymentService.paymentlayer();
    }
}
